import threading
import time

interval_time = 2
def fun_timer_test():
    print("time ",time.time())
    # global interval_time
    # timer = threading.Timer(2,fun_timer_test)
    # timer.start()

timer = threading.Timer(2,fun_timer_test)
timer.start()
while True:
    time.sleep(1)
print("end")

""" 
非周期定时任务, 只能执行一次
"""